Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

169
Views
JavaScript "\r" carriage return is not working in recent version of Chrome 93.0.4577.82 while using in javaScript and encoding the URl

Example

"Hello test" + "\r welcome world"

Current output :

Hello testwelcome world

expected output :

Hello test
welcome world
about 4 years ago · Juan Pablo Isaza
2 answers
Answer question

0

The easiest way to break lines in JS is, using <br> tag. That's the line breaking tag in HTML.

Example

"Hello test <br> welcome world"

Here is the answer.

document.write("Hello test <br> welcome world")

All the best.

about 4 years ago · Juan Pablo Isaza Report

0

Okay! Add %0D%0A to the place you want to encode a line break on the URL.

  • %0D - carriage return character
  • %0A - line break character

Example :

"Hello test%0D%0Awelcome world"
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!